package com.xxg.renrenorder.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * 类说明
 *
 * @author xxg
 * @date 2021/5/24
 */
@Data
@ApiModel(value = "AppOrderListQuery", description = "分页查看所有订单参数")
public class AppOrderListQuery {
    @NotNull(message = "pageNo不能为null")
    @Min(value = 1, message = "pageNo的值不能小于1")
    @ApiModelProperty(value = "页码", required = true)
    private Integer pageNo;
    @NotNull(message = "pageSize不能为null")
    @Min(value = 1, message = "pageSize的值不能小于1")
    @Max(value = 100, message = "pageSize的值不能大于100")
    @ApiModelProperty(value = "页大小", required = true)
    private Integer pageSize;
    @ApiModelProperty(value = "1-待付款,2-待发货，3-待收货，7-拼团进行中,null-全部")
    private Integer orderStatus;
    @ApiModelProperty(value = "开始日期 yyyy-MM-dd HH:mm:ss")
    private String startDate;
    @ApiModelProperty(value = "结束日期 yyyy-MM-dd HH:mm:ss")
    private String endDate;
    @ApiModelProperty(value = "订单收件人姓名（模糊查询）")
    private String name;
    @ApiModelProperty(value = "订单收件人手机号（精确查询）")
    private String phone;
    @ApiModelProperty(value = "订单收件人地址所在行政区划代码（精确查询）")
    private Integer areaCode;
}
